this._promptEntry = new St.Entry({ style_class: 'login-dialog-prompt-entry',
can_focus: true });
this._promptEntryTextChangedId = 0;
+ this._promptEntryActivateId = 0;
this._promptBox.add(this._promptEntry,
{ expand: true,
x_fill: true,
Lang.bind(this, function() {
this._updateSignInButtonSensitivity(this._promptEntry.text.length > 0);
}));
+
+ this._promptEntryActivateId =
+ this._promptEntry.clutter_text.connect('activate', function() {
+ hold.release();
+ });
},
_updateSensitivity: function(sensitive) {
this._promptEntryTextChangedId = 0;
}
+ if (this._promptEntryActivateId > 0) {
+ this._promptEntry.clutter_text.disconnect(this._promptEntryActivateId);
+ this._promptEntryActivateId = 0;
+ }
+
this._setWorking(false);
this._promptBox.hide();
this._promptLoginHint.hide();
this._promptEntry = new St.Entry({ style_class: 'login-dialog-prompt-entry',
can_focus: true });
+ this._promptEntry.clutter_text.connect('activate', Lang.bind(this, this._doUnlock));
this._promptEntry.clutter_text.set_password_char('\u25cf');
ShellEntry.addContextMenu(this._promptEntry, { isPassword: true });
this.setInitialKeyFocus(this._promptEntry);